<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/layout/common.xhtml">
	<ui:define name="body">
		<h:form>
			<p:panel header="#{msg['massai.login.header']}">
				<h:panelGrid columns="2" cellpadding="5">
					<h:outputLabel value="#{msg['massai.login.login']} (*)" for="login" />
					<p:inputText value="#{loginBean.usuario.login}" id="login" required="true" maxlength="20" label="#{msg['massai.login.login']}" />

					<h:outputLabel value="#{msg['massai.login.senha']} (*)" for="senha" />
					<p:password value="#{loginBean.usuario.senha}" id="senha" required="true" label="#{msg['massai.login.senha']}" />

					<h:outputLabel value="#{msg['massai.login.lembrar']}" />
					<p:selectBooleanCheckbox value="#{loginBean.lembrarSenha}" />

					<p:spacer width="0" />
					<h:commandButton actionListener="#{loginBean.login()}" 
						value="#{msg['massai.login.acessar']}" style="float: right;" />
				</h:panelGrid>
			</p:panel>
		</h:form>
	</ui:define>
</ui:composition>
</html>